package poo.games;

public class IndovinaNumeroGUI {

	// static final int MAX = 10;
	// static int indovina = (int)(Math.random()*MAX)+1;
	static int indovina = 8;

	public static boolean indovina(int numero) {
		boolean ok = false;

		if (numero >= 0 && numero <= 10) {
			if (numero == indovina) {
				ok = true;
			} else {
				ok = false;
			}
		}
		if (!ok)
			numEsatto(indovina);
		return ok;
	}// indovina

	public static int numEsatto(int x) {
		return x;
	}// numEsatto

	public static void main(String[] args) {
		System.out.println(indovina(8));

	}

}
